<div id="product">
    <div class="search">
        <form class="form-inline form-search">
            <label>日期范围</label>
            <input class="form-group" type="date" name="begintime" value="">
            <input class="form-group" type="date" name="endtime" value="">
            <!--<select name="proName">-->
                <!--<option>产品1</option>-->
                <!--<option>产品2</option>-->
            <!--</select>-->
            <button type="button" class="btn btn-success" id="search">搜索</button>
        </form>
    </div>
    <div>
        <span>显示</span>
        <select class="pageSize" name="pageSize">
            <option>5</option>
            <option>10</option>
            <option>15</option>
            <option>20</option>
        </select>
        <span>条</span>
    </div>

    <div>
        <input class="btn btn-danger" type="button" id="dels" value="批量删除">
        <input class="btn btn-primary" type="button" value="添加" id="addBtn" data-toggle="modal" data-target="#addModal">
        <input class="btn btn-primary" type="button" id="res" value="刷新">

    </div>
    <table ng-src="/product/searchProductCondition.do" class="table">
        <thead>
        <tr ng-tilte="bingTable">
            <th ng-feild="checkbox"><input id="checkAll" type="checkbox" checked="false"></th>
            <th ng-feild="proFid">#</th>
            <th ng-feild="proName">产品名称</th>
            <th ng-feild="proImgurl">图片</th>
            <th ng-feild="proDescribe">描述</th>
            <th ng-feild="proState">发布状态</th>
            <th ng-feild="operation">操作</th>
        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>


    <div class="page" data-src="../model/page.htm"></div>

</div>
<!-- Modal -->

<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加产品</h4>
            </div>
            <div class="modal-body">
                <form class="addProductForm">
                    <input class="form-control" type="text" name="proName" placeholder="产品名称">
                    <input class="form-control" type="text" name="proImgurl" placeholder="图片">
                    <input class="form-control" type="text" name="proDescribe" placeholder="描述">
                    <select id="selectFactory" class="form-control" name="equipfactory.fName" placeholder="所属工厂">

                    </select>
                    <input class="form-control" type="text" name="proState" placeholder="发布状态">

                    <!--<label class="form-control">发布状态<input name="proState" type="checkbox"></label>-->
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" id="addProduct">添加</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="updateModalLabel">修改产品</h4>
            </div>
            <div class="modal-body">
                <form class="updateProductForm">
                    <input class="form-control" type="text" name="proFid" readonly>
                    <span>产品名称:</span><input class="form-control" type="text" name="proName" placeholder="产品名称">
                    <span>图片:</span><input class="form-control" type="text" name="proImgurl" placeholder="图片">
                    <span>描述:</span><input class="form-control" type="text" name="proDescribe" placeholder="描述">
                    <span>发布状态:</span><input class="form-control" type="text" name="proState" placeholder="发布状态">
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" ng-fid="" id="updateProduct">修改产品</button>
            </div>
        </div>
    </div>
</div>
<!--<script src="../static/public/js/BingTable.js"></script>-->
<script src="../static/js/product.js"></script>
